package xin.clips.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import xin.clips.common.annotation.Excel;
import xin.clips.common.core.domain.BaseEntity;

/**
 * 系统访问日志对象 sys_visit_log
 *
 * @author yuanzy
 * @date 2023-02-27
 */
public class SysVisitLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 访问日志ID */
    private Long visitId;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 操作人员 */
    @Excel(name = "操作人员")
    private String operName;

    /** 请求地址 */
    //@Excel(name = "请求地址")
    private String openUrl;

    /** 访问地址 */
   // @Excel(name = "访问地址")
    private String operIp;

    /** 访问时间 */
    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss")
    @Excel(name = "访问时间", width = 30, dateFormat = "yyyy-MM-dd  HH:mm:ss")
    private Date operTime;


    /**
     * 模块名称
     */
    private String moduleName;

    private String count; //数量

    /**
     *用户id
     */
    private Long userId;

    /** 操作模块 */
    @Excel(name = "操作模块")
    private String title;

    private String dat;


    public String getDat() {
        return dat;
    }

    public void setDat(String dat) {
        this.dat = dat;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public void setVisitId(Long visitId)
    {
        this.visitId = visitId;
    }

    public Long getVisitId()
    {
        return visitId;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setOperName(String operName)
    {
        this.operName = operName;
    }

    public String getOperName()
    {
        return operName;
    }
    public void setOpenUrl(String openUrl)
    {
        this.openUrl = openUrl;
    }

    public String getOpenUrl()
    {
        return openUrl;
    }
    public void setOperIp(String operIp)
    {
        this.operIp = operIp;
    }

    public String getOperIp()
    {
        return operIp;
    }
    public void setOperTime(Date operTime)
    {
        this.operTime = operTime;
    }

    public Date getOperTime()
    {
        return operTime;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("visitId", getVisitId())
            .append("content", getContent())
            .append("operName", getOperName())
            .append("openUrl", getOpenUrl())
            .append("operIp", getOperIp())
            .append("operTime", getOperTime())
            .append("createTime", getCreateTime())
            .append("title", getTitle())
            .toString();
    }
}
